/* eslint-disable */
import { 
    GetProductList,
    UpdateProductSale,
    GetProductSkus,
    SetProductSkus,
    GetLibrary,
    GetOrders,
    GetOrderDetail,
    ShipOrder,
    GetAsset,
    GetWithdraw,
    StoreWithdraw,
    GetWithdrawInfo,
    CancelOrderFms,
    CancelOrder,
    GetUserList,
    ShipBidOrder,
    CancelBidOrder,
    GetCategory,
    GetProductShow,
    AddLibraryProduct,
    SetBidPrice,
    GetMyBidOrders,
    GetBidOrders,
	GetFundInfo,
	GetWithdrawRecord,
    UpdateProduct,
    AddProductOwnSku,
    UploadImage,
    AddOwnProduct,
    GetMerchantInfo,
    SetMerchantInfo,
    DelProductSku,
    GetBidOrdersShow,
    UpdateBankInfo,
    UpdatePassword,
    GetQueryDeliverFee,
    showOrder,
    addAfterQuery,
    reAddOrder,
    GetOtherOrder,
    makeAsRead,
    GetMerchantNotification,
    orderCancelConfirm,
    bidorderCancelConfirm,
    orderRefund,
    getDict,
    orderRefundById
 } from "@/api/merchant";



 const merchant = {
     state: {
         info: {
            freight: 10  //运费
         }
     },
     actions: {
        GetProductList({}, param) {
            return GetProductList(param)
        },
        GetProductShow({}, param) {
            return GetProductShow(param)
        },
        UpdateProductSale({}, param) {
            return UpdateProductSale(param)
        },
        GetProductSkus({}, param) {
            return GetProductSkus(param)
        },
        SetProductSkus({}, param) {
            return SetProductSkus(param)
        },
        GetLibrary({}, param) {
            return GetLibrary(param)
        },
        GetOrders({}, param) {
            return GetOrders(param)
        },
        GetOrderDetail({}, param) {
            return GetOrderDetail(param)
        },
        ShipOrder({}, param) {
            return ShipOrder(param)
        },
        CancelOrderFms({}, param) { // 订单内取消配送
            return CancelOrderFms(param)
        },
        CancelOrder({}, param) {
            return CancelOrder(param)
        },
        reAddOrder({}, param) {
            return reAddOrder(param)
        },
        GetBidOrders({}, param) {
            return GetBidOrders(param)
        },
        GetMyBidOrders({}, param) {
            return GetMyBidOrders(param)
        },
        SetBidPrice({},param){
            return SetBidPrice(param)
        },
        ShipBidOrder({}, param) {
            return ShipBidOrder(param)
        },
        CancelBidOrder({}, param) {
            return CancelBidOrder(param)
        },
        GetAsset({}, param) {
            return GetAsset(param)
        },
        GetWithdraw({}, param) {
            return GetWithdraw(param)
        },
        StoreWithdraw({}, param) {
            return StoreWithdraw(param)
        },
        GetWithdrawInfo({}, param) {
            return GetWithdrawInfo(param)
        },
        GetCategory({}, param) {
            return GetCategory(param)
        },
        AddLibraryProduct({}, param){
            return AddLibraryProduct(param)
        },
        UpdateProduct({}, param){
            return UpdateProduct(param)
        },
        AddProductOwnSku({}, param){
            return AddProductOwnSku(param)
        },
        // 上传图片
        UploadImage({}, param){
            return UploadImage(param)
        },
        // 添加自己的产品
        AddOwnProduct({}, param){
            return AddOwnProduct(param)
        },
		GetUserList({}, param) {
			return GetUserList(param)
		},
		GetFundInfo({}, param) {
			return GetFundInfo(param)
		},
		GetWithdrawRecord({}, param) {
			return GetWithdrawRecord(param)
        },
        GetMerchantInfo({}, param) {
			return GetMerchantInfo(param)
        },
        SetMerchantInfo({}, param){
            return SetMerchantInfo(param)
        },
        DelProductSku({}, param){
            return DelProductSku(param)
        },
        GetBidOrdersShow({}, param){
            return GetBidOrdersShow(param)
        },
        UpdateBankInfo({}, param){
            return UpdateBankInfo(param)
        },
        UpdatePassword({}, param){
            return UpdatePassword(param)
        },
        GetQueryDeliverFee({}, param){
            return GetQueryDeliverFee(param)
        }, 
        showOrder({}, param){
            return showOrder(param)
        }, 
        addAfterQuery({}, param){
            return addAfterQuery(param)
        }, 
        GetOtherOrder({}, param){
            return GetOtherOrder(param)
        },
        //设置通知为已读
        makeAsRead({}, param){
            return makeAsRead(param)
        },
        //获取通知数
        GetMerchantNotification({}, param){
            return GetMerchantNotification(param)
        },
        orderCancelConfirm({}, param){
            return orderCancelConfirm(param)
        },
        bidorderCancelConfirm({}, param){
            return bidorderCancelConfirm(param)
        },
        orderRefund({}, param){
            return orderRefund(param)
        },
        getDict({}, param){
            return getDict(param)
        },
        orderRefundById({}, param){
            return orderRefundById(param)
        },
        
     },
     mutations: {

     }
 }

 export default merchant;